#define _CRT_SECURE_NO_WARNINGS 1

#include"merge_sort.h"

void TestMargeSort()
{
	int a[] = { 3,6,8,4,9,1,7,31,-5,-9 };
	int sz = sizeof(a) / sizeof(a[0]);
	int left = 0;
	int right = sz - 1;
	MergeSort(a, left, right);
	PrintSort(a, sz);
}

void TestMargeSortNoR()
{
	int a[] = { 3,6,8,4,9,1,7,31,-5,-9 };
	int sz = sizeof(a) / sizeof(a[0]);
	int left = 0;
	int right = sz - 1;
	MergeSortNoR(a, left, right);
	PrintSort(a, sz);
}

void TestCountSort()
{
	int a[] = { 3,6,8,4,9,1,7,31,-5,-9,6,8,4,-9,6,6 };
	int sz = sizeof(a) / sizeof(a[0]);
	CountSort(a, sz);
	PrintSort(a, sz);
}


int main()
{
	TestMargeSort();
	TestMargeSortNoR();
	TestCountSort();
	return 0;
}